﻿using UnityEngine;

public class ButterflyMoveBehaviour : BaseBehaviour
{
    private Vector3 forceUp;
    private Vector3 forceDown;

    protected override void start()
    {
        initForces();
    }

    private void initForces()
    {
        forceUp = new Vector3(0, constantForce.force.y, 0);
        forceDown = new Vector3(0, -constantForce.force.y, 0);
    }

    public void moveUp()
    {
        gameObject.constantForce.force = forceDown;
    }

    public void moveDown()
    {
        gameObject.constantForce.force = forceUp;
    }
}
